package io.renren.modules.bs.controller;

import io.renren.common.utils.R;
import io.renren.modules.bs.service.BsExtractRecordService;
import io.renren.modules.bs.vo.IndexVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/bs/index")
public class BsIndexController {

    @Autowired
    private BsExtractRecordService extractRecordService;
//    /**
//     * 列表
//     */
    @RequestMapping("/getData")
    public R getData(@RequestParam Map<String, Object> params){

        List<IndexVo> indexVoList = this.extractRecordService.getData(params);

        return R.ok().put(indexVoList);
    }
}
